#ifndef __HELPERS_H__
#define __HELPERS_H__

#include <string>
#include <cstdlib>

#include "BaseWord.h"

using namespace std;

void convert_to_mix_bytes(const long long value, unsigned char* const buffer, const int bufferSize);

// Converts a hexadecimal string to integer
// input: input string
// value: integer value representing input string
int xtoi(const char* const input, unsigned int* value);

// Performs a case insensitive string comparison
// left: left value
// right: right value
int strcmpci(const char* const left, const char* const right);

/// performs a pretty printing of the comparison value
/// os: output stream
/// comparison: comparison value to pretty print
void pretty_print_comparison(std::ostream* const os, Comparison comparison);
#endif
